package com.ruoyi.system.service.impl;



import com.ruoyi.system.dto.SearchDTO;
import com.ruoyi.system.mapper.SearchMapper;
import com.ruoyi.system.service.ISearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchServiceImpl implements ISearchService {

    @Autowired
    private SearchMapper searchMapper;


    @Override
    public List<SearchDTO> searchList(String keyword) {
        return searchMapper.searchFromView(keyword);
    }

    @Override
    public List<SearchDTO> randomSearchWithCover() {
        return searchMapper.randomSearchWithCover();
    }
}
